/**
 * 该文件是为了按需加载，剔除掉了一些不需要的框架组件。
 * 减少了编译支持库包大小
 *
 * 当需要更多组件依赖时，在该文件加入即可
 */
// import Vue from 'vue'
import {
  Input,
  Rate,
  Slider,
  InputNumber,
  Button,
  Switch,
  Radio,
  Checkbox,
  Select,
  Card,
  Form,
  Row,
  Col,
  Modal,
  Tabs,
  Icon,
  Tag,
  Divider,
  DatePicker,
  TimePicker,
  message,
  Tooltip,
  FormModel,
  Dropdown,
  Menu,
  Spin,
  notification,
  Popconfirm
} from 'ant-design-vue'

// 按需加载的组件
const components = [
  Input,
  Rate,
  Slider,
  InputNumber,
  Button,
  Switch,
  Radio,
  Checkbox,
  Select,
  Card,
  Form,
  Row,
  Col,
  Modal,
  Tabs,
  Icon,
  Tag,
  Divider,
  DatePicker,
  TimePicker,
  message,
  Tooltip,
  FormModel,
  Dropdown,
  Menu,
  Spin,
  notification,
  Popconfirm
]

export default function install(Vue) {
  components.map(component => Vue.use(component))
  Vue.prototype.$notification = notification
  Vue.prototype.$confirm = Modal.confirm
  Vue.prototype.$message = message
}
